package sk.fhi.shared.rpc.action;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import sk.fhi.shared.model.AbstractEntity;
import sk.fhi.shared.rpc.AbstractAction;
import sk.fhi.shared.rpc.result.DeleteResult;

public class DeleteAction extends AbstractAction<DeleteResult> {

	private ArrayList<Long> ids;
	private AbstractEntity kind;

	public DeleteAction() {
	}
	
	public DeleteAction(AbstractEntity kind, ArrayList<Long> ids ) {
		super();
		this.ids = ids;
		this.kind = kind;
	}

	public List<Long> getIds() {
		return ids;
	}

	public AbstractEntity getKind() {
		return kind;
	}


	@Override
	public String getLogMessage() {
		
		return "Deleting entity:"+kind.getClass().getName()+" with id's:"+Arrays.toString(ids.toArray())+"";
	}
	
}
